home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / udev / rules.d / README < prev   
Encoding:
Text File  |  2009-04-08  |  1.4 KB  |  36 lines

  1. The files in this directory are read by udev(7) and used when events
  2. are performed by the kernel.  The udev daemon watches this directory
  3. with inotify so that changes to these files are automatically picked
  4. up, for this reason they must be files and not symlinks to another
  5. location as in the case in Debian.
  6.  
  7. Packages do not generally install rules here, this directory is for
  8. local rules.  If you want to override behaviour of package-supplied
  9. rules, which can be found in /lib/udev/rules.d, you can do one of
  10. two things:
  11.  
  12.  1) Write your own rules in this directory that assign the name,
  13.     symlinks, permissions, etc. that you want.  Pick a number higher
  14.     than the rules you want to override, and yours will be used.
  15.  
  16.  2) Copy the file from /lib/udev/rules.d and edit it here; you
  17.     should generally only do this if you want to prevent a program
  18.     from being run.
  19.  
  20.  
  21. Files should be named xx-descriptive-name.rules, the xx should be
  22. chosen first according to the following sequence points:
  23.  
  24.  < 60  most user rules; if you want to prevent an assignment being
  25.        overriden by default rules, use the := operator.
  26.  
  27.        these cannot access persistent information such as that from
  28.        vol_id
  29.  
  30.  < 70  rules that run helpers such as vol_id to populate the udev db
  31.  
  32.  < 90  rules that run other programs (often using information in the
  33.        udev db)
  34.  
  35.  >=90  rules that should run last
  36.